export const rules = {
  name: [{
    required: true,
    message: "please enter name",
    trigger: "blur"
  }]
};

export function Model(name = "", desc = "", permissions = []) {
  this.name = name;
  this.desc = desc;
  this.permissions = permissions;
}

export function SearchModel() {}

export const permissionList = [{
    label: "menu",
    value: "menu"
  },
  {
    label: "index",
    value: "index"
  },
  {
    label: "view",
    value: "show"
  },
  {
    label: "new",
    value: "store"
  },
  {
    label: "edit",
    value: "update"
  },
  {
    label: "del",
    value: "destroy"
  },
  {
    label: "auditing",
    value: "auditing"
  },
  {
    label: "void",
    value: "void"
  },
  {
    label: "do",
    value: "do"
  },
  {
    label: "invice",
    value: "invice"
  },
  {
    label: "printaddress",
    value: "printaddress"
  },
  {
    label: "rejection",
    value: "rejection"
  }, {
    label: "import",
    value: "import"
  },
  {
    label: "export",
    value: "export"
  }
];
